module.exports = {
  path: '/',
  redirect: '/home',
  //conponent: XXX  这个不需要, 平台加载首页框架
  children: [
    // {
    //   path: 'home',
    //   title: '首页',
    //   name: 'my_home_index', //这个路由名字不要改, 否则可能导致空白页面.
    //   component: resolve => require(['../views/home.vue'], resolve)
    // },
    {
      path: 'home',
      title: '首页',
      name: 'home_index', //这个路由名字不要改, 否则可能导致空白页面.
      component: resolve => require(['../views/home.vue'], resolve)
    },
    // 以下仅用于演示, 为每个岗位配了一个路由, 真实开发, 替换掉他们
    {
      path: 'user-list',
      icon: 'compose',
      name: 'user-list',
      title: '用户管理',
      component: resolve => {
        require(['../views/user/UserList.vue'], resolve)
      }
    },
    {
      path: 'dev-user-manage',
      icon: 'compose',
      name: 'dbpage',
      title: '用户管理',
      component: resolve => {
        require(['../views/demoModule/user/UserManage.vue'], resolve)
      }
    },
    {
      path: 'dev-user-manage',
      icon: 'compose',
      name: 'post-manage',
      title: '用户管理',
      component: resolve => {
        require(['../views/demoModule/user/UserManage.vue'], resolve)
      }
    },
    {
      path: 'dev-user-manage',
      icon: 'compose',
      name: 'psc-delegate',
      title: '用户管理',
      component: resolve => {
        require(['../views/demoModule/user/UserManage.vue'], resolve)
      }
    },
    {
      path: 'dev-user-manage',
      icon: 'compose',
      name: 'msg-tunnel',
      title: '用户管理',
      component: resolve => {
        require(['../views/demoModule/user/UserManage.vue'], resolve)
      }
    },
    {
      path: 'dev-user-manage',
      icon: 'compose',
      name: 'rpt-tmp',
      title: '用户管理',
      component: resolve => {
        require(['../views/demoModule/user/UserManage.vue'], resolve)
      }
    },
    {
      path: 'data-summary',
      icon: 'compose',
      name: 'data-summary',
      title: '数据汇总',
      component: resolve => {
        require(['../views/dataSummary/index.vue'], resolve)
      }
    },
    {
      path: 'special-work',
      icon: 'compose',
      name: 'special-work',
      title: '专项工作',
      component: resolve => {
        require(['../views/dataSummary/index.vue'], resolve)
      }
    },
    {
      path: 'my-form',
      icon: 'compose',
      name: 'my-form',
      title: '表单中心',
      component: resolve => {
        require(['../views/formCenter/index.vue'], resolve)
      }
    },
    {
      path: 'my-bpm',
      icon: 'compose',
      name: 'my-bpm',
      title: '流程中心',
      component: resolve => {
        require(['../views/bpmCenter/index.vue'], resolve)
      }
    },
    {
      path: 'menu-benchmark',
      icon: 'compose',
      name: 'menu-benchmark',
      title: '数智化标杆申报',
      component: resolve => {
        require(['../views/menuList/entry/menuBenchmark.vue'], resolve)
      }
    },
    {
      path: 'ai-report',
      icon: 'compose',
      name: 'ai-report',
      title: 'AI大赛申报',
      component: resolve => {
        require(['../views/menuList/entry/menuAi.vue'], resolve)
      }
    },
    {
      path: 'benchmark-rate',
      icon: 'compose',
      name: 'benchmark-rate',
      title: '智数化标杆评选',
      component: resolve => {
        require(['../views/menuList/entry/benchmark-rate.vue'], resolve)
      }
    },
    {
      path: 'ai-rate',
      icon: 'compose',
      name: 'ai-rate',
      title: 'AI大赛评选',
      component: resolve => {
        require(['../views/menuList/entry/ai-rate.vue'], resolve)
      }
    },
    {
      path: 'supplier-evaluation',
      icon: 'compose',
      name: 'supplier-evaluation',
      title: '供应商评价',
      component: resolve => {
        require(['../views/menuList/entry/supplier-evaluation.vue'], resolve)
      }
    },
    {
      path: 'data-application',
      icon: 'compose',
      name: 'data-application',
      title: '数据应用案例',
      component: resolve => {
        require(['../views/menuList/entry/dataApplication.vue'], resolve)
      }
    },
    {
      path: 'special-subject-data',
      icon: 'compose',
      name: 'special-subject-data',
      title: '专题数据',
      component: resolve => {
        require(['../views/specialSubjectData/index.vue'], resolve)
      }
    },
    {
      path: 'it-purchase',
      icon: 'compose',
      name: 'it-purchase',
      title: 'IT集采管理',
      component: resolve => {
        require(['../views/itPurchase/index.vue'], resolve)
      }
    },
    {
      path: 'data-resouce-search',
      icon: 'compose',
      name: 'data-resouce-search',
      title: '数据资源调查',
      component: resolve => {
        require(['../views/dataResouceSearch/index.vue'], resolve)
      }
    },
    {
      path: 'control-manage',
      icon: 'compose',
      name: 'control-manage',
      title: '管控治理',
      component: resolve => {
        require(['../views/controlManage/index.vue'], resolve)
      }
    },
    {
      path: 'framework-manage',
      icon: 'compose',
      name: 'framework-manage',
      title: '架构管理',
      component: resolve => {
        require(['../views/frameworkManage/index.vue'], resolve)
      }
    },
    {
      path: 'network-safe',
      icon: 'compose',
      name: 'network-safe',
      title: '网络安全管理',
      component: resolve => {
        require(['../views/networkSafe/index.vue'], resolve)
      }
    },
    {
      path: 'digital-transform-questionnaire',
      icon: 'compose',
      name: 'digital-transform-questionnaire',
      title: '2023年华润集团数字化转型调查',
      component: resolve => {
        require(['../views/questionnaire/index.vue'], resolve)
      }
    },
    {
      path: 'menu-auestionnaire',
      icon: 'compose',
      name: 'menu-auestionnaire',
      title: '数字化转型调查',
      component: resolve => {
        require(['../views/menuList/entry/menuAuestionnaire.vue'], resolve)
      }
    },
    {
      path: 'level-evaluation',
      icon: 'compose',
      name: 'level-evaluation',
      title: '数字化水平评价',
      component: resolve => {
        require(['../views/menuList/entry/level-evaluation.vue'], resolve)
      }
    },
    {
      path: 'ai-special',
      icon: 'compose',
      name: 'ai-special',
      title: 'AI专题',
      component: resolve => {
        require(['../views/menuList/entry/ai-special.vue'], resolve)
      }
    },
    {
      path: 'digital-transform-search',
      icon: 'compose',
      name: 'digital-transform-search',
      title: '央企数字化转型年度调查',
      component: resolve => {
        require(['../views/digitalTransformSearch/index.vue'], resolve)
      }
    },
    {
      path: 'contact-person',
      icon: 'compose',
      name: 'contact-person',
      title: '各领域对接人信息',
      component: resolve => {
        require(['../views/contactPerson/index.vue'], resolve)
      }
    },
    {
      path: 'digital_trans_research',
      icon: 'compose',
      name: 'digital_trans_research',
      title: '数字化转型调查',
      component: resolve => {
        require(['../views/digitalTransResearch/index.vue'], resolve)
      }
    },
    {
      path: 'data-elements',
      icon: 'compose',
      name: 'data-elements',
      title: '数据要素化管理',
      component: resolve => {
        require(['../views/dataElements/index.vue'], resolve)
      }
    },
    {
      path: 'group_summary',
      icon: 'compose',
      name: 'group_summary',
      title: '调查表-集团汇总',
      component: resolve => {
        require(['../views/groupSummary/index.vue'], resolve)
      }
    },
    {
      path: 'business_unit_check',
      icon: 'compose',
      name: 'business_unit_check',
      title: '调查表-BU查看',
      component: resolve => {
        require(['../views/businessUnitCheck/index.vue'], resolve)
      }
    },
    {
      path: 'coverage-statistics',
      icon: 'compose',
      name: 'coverage-statistics',
      title: '关键业务环节数字化覆盖度',
      component: resolve => {
        require(['../views/specialManagement/coverageStatistics/index.vue'], resolve)
      }
    },
    {
      path: 'implementation-plan',
      icon: 'compose',
      name: 'implementation-plan',
      title: '实施方案',
      component: resolve => {
        require(['../views/specialManagement/implementationPlan/index.vue'], resolve)
      }
    },
    {
      path: 'my-approval',
      icon: 'compose',
      name: 'my-approval',
      title: '我的审批',
      component: resolve => {
        require(['../views/todoCenter/taskCenter/index.vue'], resolve)
      }
    },
    {
      path: 'my-reminder',
      icon: 'compose',
      name: 'my-reminder',
      title: '我的审批',
      component: resolve => {
        require(['../views/todoCenter/myReminder/index.vue'], resolve)
      }
    },
    {
      path: 'filling-reminder',
      icon: 'compose',
      name: 'filling-reminder',
      title: '任务管理',
      component: resolve => {
        require(['../views/systemManagement/remind/index.vue'], resolve)
      }
    },
    {
      path: 'account-manage',
      icon: 'compose',
      name: 'account-manage',
      title: '账户管理',
      component: resolve => {
        require(['../views/systemManagement/accountManage/index.vue'], resolve)
      }
    },
    {
      path: 'power-manage',
      icon: 'compose',
      name: 'power-manage',
      title: '权限管理',
      component: resolve => {
        require(['../views/systemManagement/permissionManage/index.vue'], resolve)
      }
    },
    {
      path: 'form-manage',
      icon: 'compose',
      name: 'form-manage',
      title: '表单管理',
      component: resolve => {
        require(['../views/systemManagement/formManage/index.vue'], resolve)
      }
    },
    {
      path: 'target-table-update/:bindId',
      icon: 'compose',
      name: 'target-table-update',
      title: '目标表更新',
      meta: {
        noLimit: true // 设置为true，没权限访问时也可跳转，否则将会被拦截到首页
      },
      component: resolve => {
        require(['../views/dataSummary/targetTableUpdate.vue'], resolve)
      }
    },
    {
      path: 'status-and-rate/:bindId',
      icon: 'compose',
      name: 'status-and-rate',
      title: '现状表和计算表审批更新',
      meta: {
        noLimit: true // 设置为true，没权限访问时也可跳转，否则将会被拦截到首页
      },
      component: resolve => {
        require(['../views/dataSummary/statusAndRate.vue'], resolve)
      }
    },
    {
      path: 'history-update-list/:bindId',
      icon: 'compose',
      name: 'history-update-list',
      title: '历史季度进度更新记录列表',
      meta: {
        noLimit: true // 设置为true，没权限访问时也可跳转，否则将会被拦截到首页
      },
      component: resolve => {
        require(['../views/dataSummary/historyUpdateList/index.vue'], resolve)
      }
    },
    {
      path: 'sys-config',
      icon: 'compose',
      name: 'sys-config',
      title: '系统配置',
      component: resolve => {
        require(['../views/systemManagement/systemConfigManage/index.vue'], resolve)
      }
    }
  ]
}
